﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using Volo.Abp.Domain.Entities;

namespace CommonManagement
{
    /// <summary>
    /// 城市类
    /// </summary>
    public class City : BasicAggregateRoot<int>
    {
        /// <summary>省份编号</summary>
        public int ProvinceId { get; protected set; }

        /// <summary>名称</summary>
        public string Name { get; protected set; }

        /// <summary>省份</summary>
        [ForeignKey("ProvinceId")]
        public Province Province { get; protected set; }

        /// <summary>区域集合</summary>
        public IList<Area> Areas { get; protected set; }

        private City() { }
    }
}